Ulm Ux Api
Retrieve Customer Migration Info
Retrieves cutomer migration information
URL
https://[localhost]:[port]/api/v1/{businessId}/customerMigrationInfourl Param
| name | type | description | required |
|---|---|---|---|
| businessId | string | 2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit. | Y |
Header
| name | type | description | required |
|---|---|---|---|
| client_id | string | The client_id identifying the channel. Minimum characters: 5 | Y |
| client_secret | string | Password associated with the client_id. Minimum characters: 5 | Y |
| X-Correlation-ID | string | Identifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. | Y |
Query Param
| name | type | description | required |
|---|---|---|---|
| serviceNumber | string | Service Number or SubscriptionNumber | Y |
cURL request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/ulm-ux/v1/PR/customerMigrationInfo?serviceNumber=13406434744' \
--header 'client_id: abcde' \
--header 'client_secret: 12345' \
--header 'X-Correlation-ID: {guid}'Response
{
"phone_number": "13406434744",
"activation_date": "2023-07-17 14:26:18",
"auto_pay_flg": true,
"fraud_flg": true,
"migration_status": "not_started",
"population_date": "2023-07-17 14:26:18",
"account_status": "Active",
"customer_type": "B2C",
"PIN": "1234",
"rating_type": "Postpaid",
"salesforce_account_number": "0017d00001I2dZEAAZ",
"source_system": "ATT",
"subscription_id": "21513835_21515314"
}Response
In this section all the possible data structures received by the client at the moment of responding the method are defined.
Possible response success
This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.
[ 200 ]
OK - Retrieve customer migration info request processed successfully, response body contains an entity corresponding to the requested resource.
NOTE:
- All Use Cases are listed and referenced to their examples on Use Case section
- All definitions are described on RAML, inside of Anypoint Design Center.
Possible response error
In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.
[ 400 ]
Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
{
"errors" : [{
"code" : 400,
"message" : "The request is invalid or not properly formed.",
"description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
}]
}[ 401 ]
Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.
{
"errors" : [{
"code" : 401,
"message" : "The user could not be authenticated for this request.",
"description" : "The request has not been applied because it lacks valid authentication credentials for the target resource."
}]
}[ 404 ]
Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
{
"message": "Resource not found"
}[ 405 ]
Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
{
"message": "Method not allowed"
}[ 500 ]
Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.
{
"errors" : [{
"code" : 500,
"message" : "Internal Server Error",
"description": "The request failed due to an internal error."
}]
}[ 501 ]
Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.
{
"errors" : [{
"code" : 501,
"message" : "Not implemented",
"description" : "Operation GET /customerMigrationInfo for Business Id: xxxx not implemented"
}]
}##